package com.hong.dubbo.consumer;

import com.hong.dubbo.api.HelloDubboService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Macrowang
 * @date 2019/03/01 10:12
 **/
public class HelloDubboConsumer {
    public static void main(String[] args) {
        //测试常规服务
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("applicationContext.xml");
        context.start();
        System.out.println("consumer start");
        HelloDubboService demoService = context.getBean(HelloDubboService.class);
        System.out.println("=====================");
        System.out.println(demoService.sayHello("macrowang"));
    }
}
